package com.estate.business.impl;

import java.util.List;

import com.estate.business.TestService;
import com.estate.dao.TestDao;
import com.estate.vo.Vo;
import com.estate.vo.impl.TestVo;

public class TestServiceImpl implements TestService {
	
	private TestDao testDao;

	public TestDao getTestDao() {
		return testDao;
	}

	public void setTestDao(TestDao testDao) {
		this.testDao = testDao;
	}

	public void test(TestVo testVo) {
		System.out.println("business success");
		testDao.addVo(testVo);
//		testDao.findByPK(1);
//		System.out.println("find success");
	}

	public void addTest(TestVo testVo) {
		System.out.println("business success");
		testDao.addVo(testVo);
//		testDao.findByPK(1);
//		System.out.println("find success");
	}

	public List<Vo> getAllTest() {
		// TODO Auto-generated method stub
		return testDao.findAll();
	}

}
